package org.akomantoso.core.data;

import java.io.IOException;

import org.akomantoso.core.io.Output;

/**
 * this element is a hierarchical container called "subdivision" either explicitly or due to the local tradition.
 * 
 * <pre>
 * 	<xsd:element name="subdivision" type="hierarchy"/>
 * </pre>
 * 
 * @author <a href="mailto:jacques.militello@gmail.com">Jacques Militello</a>
 * 
 * @since http://www.akomantoso.org/1.0
 */
public final class Subdivision extends Hierarchy  {

	public static final String ELEMENT = "subdivision";

	/**
	 * @see org.akomantoso.core.data.Blocksopt#writeExternal(org.akomantoso.core.io.Output)
	 */
	@Override
	public <T extends Output> void writeExternal(T out) throws IOException {
		out.writeStart(ELEMENT);
		super.writeExternal(out);
		out.writeEnd();

	}

//	/**
//	 * @see ec.ep.visitor.AKVisitable#accept(ec.ep.visitor.AKVisitor)
//	 */
//	public void accept(AKVisitor visitor) {
//		if (visitor.visit(AKVisitorType.START, this)) {
//			internalAccept(visitor);
//			visitor.visit(AKVisitorType.END, this);
//		}
//	}

}